.theform {
  /* background: #ab6a6a; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1vh;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 3em auto;
  text-align: center;
  background-color: #eaddca;
  border: 2px dashed #165047;
  border-radius: 15px;
  box-shadow: 0 0 0 4px #eaddca, 2px 2px 4px 2px rgba(0, 0, 0, 0.5);
}

.form-content h1 {
  padding-top: 1em;
  color: #264143;
  background-color: transparent;
  font-weight: 900;
  font-size: 1.5em;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  letter-spacing: 0.5em;
  text-align: center;
  text-shadow: inset -1px -1px 1px #daa06d;
}

.form-content input {
  outline: none;
  /* padding: 0.5em; */
  border: 1px solid #daa06d;
  color: #daa06d;
  /* width: 14em; */
  /* height: 3em; */
  border-radius: 10px;
  background-color: #eaddca;
  text-align: center;
}

.form-content button {
  cursor: pointer;
  align-self: center;
  margin: 1em 0;
  border-radius: 10px;
  outline: none;
  border: none;
  color: white;
  background-color: #e5aa70;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: 0.4s ease-in-out opacity, 0.1s ease-in-out active;
  padding: 1em;
  box-shadow: 0.5px 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.5);
}

.form-content button:hover {
  background-color: #d98c3f;
}

.form-content button:active {
  transform: translateX(0.1em) translateY(0.1em);
  box-shadow: none;
}

/* 当视口宽度小于 600px 时应用的样式 */
@media screen and (max-width: 600px) {
  .form-content {
    width: 18rem;
    padding: 1em;
  }
  .form-content input {
    margin: .1rem;
  }
}

/* 当视口宽度大于等于 600px 且小于等于 1200px 时应用的样式 */
@media screen and (min-width: 601px) and (max-width: 1200px) {
  .form-content {
    width: 22rem;
  }
}

/* 当视口宽度大于 1200px 时应用的样式 */
@media screen and (min-width: 1201px) {
  .theform {
    /* background: #ab6a6a; */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .form-content button {
    margin: .5em 4rem;
  }
  .form-content {
    width: 60rem;
  }
  .form-content h1 {
    padding-top: 1em;
    color: #264143;
    font-weight: 800;
    background-color: transparent;
    font-weight: 900;
    font-size: 3em;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 1em;
  }
  .form-content input {
    border: 2px solid #daa06d;
    border-radius: 10px;
    width: 100rem;
    height: 3em;
    margin: .1rem;
  }
}
